#ifndef REQUEST_SERVER_HH
# define REQUEST_SERVER_HH

#include "../client.hh"

class ConnectionServer: public Connection
{
public:
  ConnectionServer (const std::string& data);
  virtual ~ConnectionServer () {}

  bool identification (Database* db);

  const std::string& flag () const { return flag_; }
  
protected:
  std::string login_;
  std::string pwd_;
  std::string flag_;
};

class ReadyServer: public Ready
{
public:
  ReadyServer (boost::shared_ptr<Client> c);

  boost::shared_ptr<Client> client () const { return c_; }

protected:
  boost::shared_ptr<Client> c_;
};


class GetObjectServer: public GetObject
{
public:
  GetObjectServer (const std::string& data);
  virtual ~GetObjectServer () {}
protected:
  int objectid_;
};

#endif /// !REQUEST_SERVER_HH
